﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ParkingLot.Utility
{
    /*将所有的提示用语写在一起便于修改*/


    /// <summary>
    /// 提示语
    /// </summary>
    public class Warning
    {
        #region 单例

        private static Warning m_Instance;

        private static readonly object m_InstanceLocker = new object();

        public static Warning Instance
        {
            set
            {

            }
            get
            {
                if (m_Instance == null)
                {
                    lock (m_InstanceLocker)
                    {
                        if (m_Instance == null)
                        {
                            m_Instance = new Warning();
                        }
                    }
                }
                return m_Instance;
            }

        }
        #endregion

        #region 异常提示
        public readonly string PortConversion = "初始化端口号字符串转Int错误,请检查端口号是否正确  ";

        public readonly string QueueActionWarn = "异步接收队列处理消息出错   ";

        public readonly string DealMessageActionWarn = "接收局域网消息出错";

        public readonly string SerializableWarn = "类型不支持序列化,查看该类是否实现了[Serializable]";


        #endregion

        #region 初始化提示

        #region 初始化成功提示

        public readonly string ClientToServerInitWarn = "初始化客户端收服务器线程成功";

        public readonly string ServerToClientInitWarn = "初始化服务端接收客户端线程成功";

        public readonly string MessageManageInitWarn = "MessageManage初始化成功";

        public readonly string DbsessionFactroyInitWarn = "初始化DbsessionFactory成功";

        #endregion

        #region 初始化失败提示
        public readonly string ClientToServerInitErrorWarn = "初始化客户端收服务器线程失败";

        public readonly string ServerToClientInitErrorWarn = "初始化服务端接收客户端线程失败";

        public readonly string MessageManageWarn = "初始化MessageManage出错";

        public readonly string DbsessionFactroyInitErrorWarn = "初始化DbsessionFactory失败,请检查ParkingLot.Utility.dll.config的DbsessionType的值";
        #endregion

        #endregion
    }
}
